﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.tree {
    import flash.display.*;
    import flash.geom.*;
    import org.aswing.*;
    import org.aswing.geom.*;
    import org.aswing.plaf.*;
    import org.aswing.graphics.*;

    public class TreeLeafIcon implements Icon, UIResource {

        public function getIconWidth(_arg1:Component):int{
            return (16);
        }
        public function getIconHeight(_arg1:Component):int{
            return (16);
        }
        public function updateIcon(_arg1:Component, _arg2:Graphics2D, _arg3:int, _arg4:int):void{
            var _local5:IntRectangle = new IntRectangle(0, 0, 16, 16);
            _local5.grow(-2, -1);
            _local5.move(_arg3, _arg4);
            var _local6 = 4;
            var _local7:Array = new Array();
            _local7.push(new Point(_local5.x, _local5.y));
            _local7.push(new Point((_local5.width - _local6), _local5.y));
            _local7.push(new Point(_local5.width, (_local5.y + _local6)));
            _local7.push(new Point(_local5.width, _local5.height));
            _local7.push(new Point(_local5.x, _local5.height));
            var _local8:Array = [15133166, 9344189];
            var _local9:Array = [(100 / 0xFF), (100 / 0xFF)];
            var _local10:Array = [0, 0xFF];
            var _local11:Matrix = new Matrix();
            _local11.createGradientBox(_local5.width, _local5.height, 0, _local5.x, _local5.y);
            var _local12:GradientBrush = new GradientBrush(GradientBrush.LINEAR, _local8, _local9, _local10, _local11);
            _arg2.fillPolygon(_local12, _local7);
            _arg2.drawPolygon(new Pen(ASColor.BLACK, 0.5), _local7);
            var _local13:Array = new Array();
            _local13.push(new Point((_local5.width - _local6), _local5.y));
            _local13.push(new Point((_local5.width - _local6), (_local5.y + _local6)));
            _local13.push(new Point(_local5.width, (_local5.y + _local6)));
            _arg2.drawPolyline(new Pen(ASColor.BLACK, 0.5), _local13);
        }
        public function getDisplay(_arg1:Component):DisplayObject{
            return (null);
        }

    }
}//package org.aswing.tree 
